<template>
	<view class="count">
		<view class="topBg">

		</view>
		<view class="topBody b-f p-20">
			<view @click="AboutAs" class="topT f f-a-c f-j-b">
				<view class="left">
					关于我们
				</view>
				<image src="/static/my/you.png" class="you" mode=""></image>
			</view>
			<view @click="MessageReminder" class="topTs f f-a-c f-j-b">
				<view class="left">
					消息提醒设置
				</view>
				<image src="/static/my/you.png" class="you" mode=""></image>
			</view>
		</view>
		<view class="topBg">

		</view>
		<view class="topBody b-f p-20">
			<view @click="feedBack" class="topTs f f-a-c f-j-b">
				<view class="left">
					意见反馈
				</view>
				<image src="/static/my/you.png" class="you" mode=""></image>
			</view>
		</view>
		<!-- 下面得退出登录 -->
		<view @click="logOut" class="logOut">
			退出登录
		</view>
		<u-modal v-model="show" :show-cancel-button="true" @confirm="confirmFn" :content="content"></u-modal>
		<u-popup v-model="shows" mode="center" border-radius="20">
			<view style="padding: 30rpx;">
				<image :show-menu-by-longpress="true" :src="setup.mp_qrcode" class="code" mode=""></image>
				<view class="Public">
					请扫码关注公众号
				</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: false,
				shows: false,
				content: '确认退出登陆吗？',
				setup: uni.getStorageSync('setup')
			}
		},
		methods: {
			//点击消息提示
			MessageReminder() {
				this.shows = true
			},
			//这个是跳转到关于我们
			AboutAs() {
				uni.navigateTo({
					url: '/pageC/detils?name=about'
				})
			},
			//意见反馈
			feedBack() {
				uni.navigateTo({
					url: '/pageC/Feedback'
				})
			},
			confirmFn() {
				console.log('4548548484456');
				uni.removeStorageSync('token')
				uni.navigateBack()
			},
			//点击退出登录
			logOut() {
				this.show = true
			}
		}
	}
</script>
<style>
	page {
		background-color: #f9f9f9;
	}
</style>
<style lang="scss" scoped>
	.Public {
		text-align: center;
		font-size: 28rpx;
	}

	.code {
		width: 450rpx;
		height: 450rpx;
	}

	.logOut {
		width: 90%;
		height: 88rpx;
		line-height: 85rpx;
		background: #ffffff;
		border-radius: 44rpx;
		margin: 0 auto;
		font-size: 30rpx;
		font-family: PingFang SC, PingFang SC-Regular;
		font-weight: 400;
		text-align: center;
		color: #333333;
		margin-top: 80rpx;
	}

	.topTs {
		padding: 20rpx 0;

		.you {
			width: 12rpx;
			height: 22rpx;
		}
	}

	.topT {
		padding-bottom: 30rpx;
		border-bottom: 2rpx solid #f5f5f5;
		margin-bottom: 30rpx;

		.you {
			width: 12rpx;
			height: 22rpx;
		}
	}

	.topBg {
		width: 100%;
		height: 25rpx;
		background-color: #f9f9f9;
	}
</style>